﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.LabAssist.Models
{
    /// <summary>
    /// 检查表
    /// </summary>
    [Table("TB_Check")]

    public class Check
    {
        #region 主键
        /// <summary>
        /// 检查表ID，主键
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 检查日期
        /// </summary>
        public DateTime DateTime { get; set; }

        /// <summary>
        /// 检查记录状态
        /// </summary>
        public bool State { get; set; }


        /// <summary>
        /// 门窗状态，表示门窗是否正常
        /// </summary>
        public bool Doors_windows { get; set; }

        /// <summary>
        /// 门窗状态备注，描述门窗的具体情况
        /// </summary>
        public string Doors_windows_state { get; set; }

        /// <summary>
        /// 电器线路状态，表示电器线路是否正常
        /// </summary>
        public bool Electrical_wiring { get; set; }

        /// <summary>
        /// 电器线路备注，描述电器线路的具体情况
        /// </summary>
        public string Electrical_wiring_state { get; set; }

        /// <summary>
        /// 消防器件有无，表示消防器件是否存在
        /// </summary>
        public bool Firefighting_facilities { get; set; }

        /// <summary>
        /// 消防器件有无备注，描述消防器件的具体情况
        /// </summary>
        public string Firefighting_facilities_state { get; set; }

        /// <summary>
        /// 消防器件有效期，表示消防器件是否在有效期内
        /// </summary>
        public bool Firefighting_facilities_validity { get; set; }

        /// <summary>
        /// 消防器件有效期备注，描述消防器件有效期的具体情况
        /// </summary>
        public string Firefighting_facilities_validity_state { get; set; }

        /// <summary>
        /// 仪器设备能否使用，表示仪器设备是否可正常使用
        /// </summary>
        public bool Instruments_equipment { get; set; }

        /// <summary>
        /// 仪器设备能否使用备注，描述仪器设备的具体情况
        /// </summary>
        public string Instruments_equipment_state { get; set; }

        /// <summary>
        /// 防盗设施是否完好，表示防盗设施是否完好无损
        /// </summary>
        public bool Anti_theft_facilities { get; set; }

        /// <summary>
        /// 防盗设施是否完好备注，描述防盗设施的具体情况
        /// </summary>
        public string Anti_theft_facilities_state { get; set; }

        /// <summary>
        /// 警示标志，表示是否有警示标志
        /// </summary>
        public bool Warning_sign { get; set; }

        /// <summary>
        /// 警示标志备注，描述警示标志的具体情况
        /// </summary>
        public string Warning_sign_state { get; set; }

        /// <summary>
        /// 设备仪器其他安全隐患，表示设备仪器是否存在其他安全隐患
        /// </summary>
        public bool IEOther_safety_hazards { get; set; }

        /// <summary>
        /// 设备仪器其他安全隐患备注，描述设备仪器的其他安全隐患
        /// </summary>
        public string IEOther_safety_hazards_state { get; set; }

        /// <summary>
        /// 物品及清洁，表示物品的摆放和清洁情况是否良好
        /// </summary>
        public bool Item_hygiene { get; set; }

        /// <summary>
        /// 物品及清洁备注，描述物品摆放和清洁的具体情况
        /// </summary>
        public string Item_hygiene_state { get; set; }

        /// <summary>
        /// 其他安全隐患，表示是否存在其他安全隐患
        /// </summary>
        public bool Other_safety_hazards { get; set; }

        /// <summary>
        /// 其他安全隐患备注，描述其他安全隐患的具体情况
        /// </summary>
        public string Other_safety_hazards_state { get; set; }
        #endregion

        #region 外键
        /// <summary>
        /// 所属学期实体
        /// </summary>
        public Semester semester { get; set; }

        /// <summary>
        /// 所属学期ID
        /// </summary>
        public int semesterId { get; set; }

        /// <summary>
        /// 实验室实体
        /// </summary>
        public Laboratory laboratory { get; set; }

        /// <summary>
        /// 实验室ID
        /// </summary>
        public int laboratoryId { get; set; }
        #endregion
    }
}
